package spring.demo12.notuse;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;

public class ServerMain {
	public static void main(String[] args) throws RemoteException {
		Remote rmot = UnicastRemoteObject.exportObject(new NotUseSpringRMIImpl(),0);
		Registry registry = LocateRegistry.createRegistry(2004);
		 registry.rebind("userManager", rmot);
	}
}
